import Vue from "vue";
import moment from "moment";

Vue.filter("timeMF", (val) => {
    let s = moment(val).format("YYYY-MM-DD hh:mm:ss");
    if (s == 'Invalid date') {
        return '格式不正确'
    } else {
        return s;
    }
    
})
